/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.area_info_rate.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 车位使用情况Entity
 * @author admin
 * @version 2019-04-10
 */
public class TAreaInfoRate extends DataEntity<TAreaInfoRate> {
	
	private static final long serialVersionUID = 1L;
	private String areaName;		// 区域名称
	private Date date;		// 日期
	private String timePeriod;		// 时间段
	private String rate;		// 利用比率
	
	public TAreaInfoRate() {
		super();
	}

	public TAreaInfoRate(String id){
		super(id);
	}

	@Length(min=0, max=64, message="区域名称长度必须介于 0 和 64 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@Length(min=0, max=64, message="时间段长度必须介于 0 和 64 之间")
	public String getTimePeriod() {
		return timePeriod;
	}

	public void setTimePeriod(String timePeriod) {
		this.timePeriod = timePeriod;
	}
	
	@Length(min=0, max=64, message="利用比率长度必须介于 0 和 64 之间")
	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
}